package com.san.hkhospital.mapper;

import com.san.hkhospital.entity.Bed;
import com.san.hkhospital.entity.BedExample;

import java.util.List;

import com.san.hkhospital.vo.BedTableVo;
import org.apache.ibatis.annotations.Param;

/**
 * ClassName:BedMapper
 * PackageName:com.san.hkhospital.mapper
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 */


public interface BedMapper {
    long countByExample(BedExample example);

    int deleteByExample(BedExample example);

    int deleteByPrimaryKey(Integer bedId);

    int insert(Bed record);

    int insertSelective(Bed record);

    List<Bed> selectByExample(BedExample example);


    List<BedTableVo> selectAll();


    Bed selectByPrimaryKey(Integer bedId);

    int updateByExampleSelective(@Param("record") Bed record, @Param("example") BedExample example);

    int updateByExample(@Param("record") Bed record, @Param("example") BedExample example);

    int updateByPrimaryKeySelective(Bed record);

    int updateByPrimaryKey(Bed record);

    List<BedTableVo> selectAll(@Param("sectionId") Integer sectionId,@Param("stateId") Integer stateId);
}